home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / Caml Light 0.7 / Caml Light 0.7 source / src / tools / ppclink-makepef < prev    next >
Text File  |  1995-07-05  |  566b  |  32 lines

  1. set echo 0
  2.  
  3. set type APPL
  4. set creator '????'
  5. set outfile link.out
  6. set librename ''
  7. set linkargs ''
  8.  
  9. loop
  10.   break if {#} == 0
  11.   if "{1}" == "-o"
  12.     set outfile "{2}"
  13.     shift
  14.   else if "{1}" == "-c"
  15.     set creator "{2}"
  16.     shift
  17.   else if "{1}" == "-t"
  18.     set type "{2}"
  19.     shift
  20.   else if "{1}" == "-l"
  21.     set librename "{librename} -l {2}"
  22.     shift
  23.   else
  24.     set linkargs "{linkargs} `quote "{1}"`"
  25.   end
  26.   shift
  27. end
  28.  
  29. ppclink {linkargs} -o "{outfile}.xcoff"
  30. makepef -ft "{type}" -fc "{creator}" {librename} -o "{outfile}" "{outfile}.xcoff"
  31. delete -i "{outfile}.xcoff"
  32.